---
description: Adafruit QT Py ESP32-C3 WiFi
---
# Adafruit QT Py ESP32-C3 WiFi


A tiny ESP32-C3 board.


![Adafruit QT Py ESP32-C3 WiFi picture](https://microsoft.github.io/jacdac-docs/images/devices/adafruit/qtpyesp32c3wifidevboardv10.catalog.jpg)

## Features

-  I2C on SDA_D4/SCL_D5 using Qwiic connector
-  WS2812B RGB LED on pin 2  (use [setStatusLight](/developer/status-light) to control)
-  Serial logging on pin TX_D6 at 115200 8N1
-  Service: buttonBOOT (button)

## Stores

-  [https://www.adafruit.com/product/5405](https://www.adafruit.com/product/5405)

## Pins

| pin name | hardware id | features |
|:---------|:------------|---------:|
| **A0_D0** |  GPIO4 |  analogIn,  debug,  io |
| **A1_D1** |  GPIO3 |  analogIn,  io |
| **A2_D2** |  GPIO1 |  analogIn,  io |
| **A3_D3** |  GPIO0 |  analogIn,  io |
| **MISO_D9** |  GPIO8 |  boot,  io |
| **MOSI_D10** |  GPIO7 |  debug,  io |
| **RX_D7** |  GPIO20 |  bootUart,  io |
| **SCK_D8** |  GPIO10 |  io |
| **SCL_D5** |  GPIO6 |  i2c.pinSCL,  debug,  io |
| **SDA_D4** |  GPIO5 |  i2c.pinSDA,  debug,  io |
| **TX_D6** |  GPIO21 |  log.pinTX,  bootUart,  io |
| **$services.buttonBOOT[0].pin** |  GPIO9 |  $services.buttonBOOT[0].pin,  boot,  io |
| **led.pin** |  GPIO2 |  led.pin,  analogIn,  boot,  io |



## DeviceScript import


You must add this import statement to load 
the pinout configuration for this device.

In [Visual Studio Code](/getting-started/vscode),
click the **wand** icon on the file menu and 
select "Adafruit QT Py ESP32-C3 WiFi".

```ts
import { pins, board } from "@dsboard/adafruit_qt_py_c3"
```

## Firmware update

In Visual Studio Code,
select **DeviceScript: Flash Firmware...** from the command palette.
        
Run this [command line](/api/cli) command and follow the instructions.

```bash
devicescript flash --board adafruit_qt_py_c3
```


- [Firmware](https://github.com/microsoft/devicescript-esp32/releases/latest/download/devicescript-esp32c3-adafruit_qt_py_c3-0x0.bin)

## Configuration

```json title="adafruit_qt_py_c3.json"
{
    "$schema": "https://raw.githubusercontent.com/microsoft/devicescript-esp32/main/boards/esp32deviceconfig.schema.json",
    "id": "adafruit_qt_py_c3",
    "devName": "Adafruit QT Py ESP32-C3 WiFi",
    "productId": "0x3693d40b",
    "$description": "A tiny ESP32-C3 board.",
    "archId": "esp32c3",
    "url": "https://www.adafruit.com/product/5405",
    "$services": [
        {
            "name": "buttonBOOT",
            "pin": 9,
            "service": "button"
        }
    ],
    "i2c": {
        "$connector": "Qwiic",
        "pinSCL": "SCL_D5",
        "pinSDA": "SDA_D4"
    },
    "led": {
        "pin": 2,
        "type": 1
    },
    "log": {
        "pinTX": "TX_D6"
    },
    "pins": {
        "A0_D0": 4,
        "A1_D1": 3,
        "A2_D2": 1,
        "A3_D3": 0,
        "MISO_D9": 8,
        "MOSI_D10": 7,
        "RX_D7": 20,
        "SCK_D8": 10,
        "SCL_D5": 6,
        "SDA_D4": 5,
        "TX_D6": 21
    }
}
```
